import request from '@/utils/request.js'

// 登录认证
export const getLoginApi = (data) => {
  return request({
    method: 'post',
    url: '/app/v1_0/authorizations',
    data
  })
}

// 发送短信获取
export const getSendSmsApi = (mobile) => {
  return request({
    method: 'get',
    url: `/app/v1_0/sms/codes/${mobile}`
  })
}

// 获取用户自己信息
export const getMyUserApi = () => {
  return request({
    method: 'get',
    url: '/app/v1_0/user'
  })
}
